home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15808 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: ub239.dialup.uwa.edu.au!localhost!prye
  2. From: prye@cyllene.uwa.edu.au (Peter Rye)
  3. Newsgroups: comp.lang.c++,rec.games.programmer,alt.msdos.programmer,comp.programming
  4. Subject: Re: Young programmers read me.
  5. Date: 08 Apr 1996 05:38:08 GMT
  6. Organization: The University of Western Australia
  7. Message-ID: <PRYE.96Apr8133808@cyllene.uwa.edu.au>
  8. References: <4icpp9$7hr@barad-dur.nas.com> <4imqe4$cj3@ping1.ping.be>
  9.     <1996Mar23.224853.116513@kuhub.cc.ukans.edu> <4j52hn$ikb@news.ios.com>
  10.     <Pine.OSF.3.91.960403112207.17337H-100000@bud.cc.swin.edu.au>
  11.     <aidan-0404961557290001@meathook.intac.com>
  12.     <pnoguchi-0404962135210001@pnoguchi.his.com>
  13.     <aidan-0604961847480001@meathook.intac.com> <4k93rk$9lq@nw002.infi.net>
  14. NNTP-Posting-Host: ub239.dialup.uwa.edu.au
  15. In-reply-to: klaws@norfolk.infi.net's message of Sun, 07 Apr 1996 19:11:13 GMT
  16. X-Mailer: GNU Emacs 19.28
  17.  
  18. >>>>> "KlawS" == KlawS  <klaws@norfolk.infi.net> writes:
  19.  
  20.     KlawS> aidan@genghis.kublai.com (Aidan Cully) wrote:
  21.  
  22.     >> typedef (int*)(int a, int b) MyFuncType; 
  23.     >> MyFuncType MyFunc; 
  24.  
  25.     >> in Oberon
  26.     >> TYPE MyFuncType:FUNCTION( a, b:INTEGER ):INTEGER; 
  27.     >> VAR
  28.     >> MyFunc:MyFuncType; 
  29.  
  30.     >> Which do you think looks more readable?
  31.  
  32.     KlawS> To me, the former does. *shrug* I guess that's what happens
  33.     KlawS> when you skip pascal in the "learning trend"... (It's
  34.     KlawS> already a rather ambiguous command, in either language)
  35.  
  36. Readable, but a syntax error.
  37. You mean typedef int (*MyFuncType)(int, int);
  38. --
  39. Peter Rye   prye@cyllene.uwa.edu.au,  prye@ichr.uwa.edu.au
  40. Respiratory Research Fellow, Princess Margaret Hospital for Children
  41. Perth, Western Australia    Ph: +61 (09) 340 8985, Fax: +61 (09) 388 2097
  42. ** Smoking areas in restaurants are like peeing areas in swimming pools. **
  43.